package operation;

import java.util.Scanner;
import user.*;
import book.*;

public class test {
    public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);
        booklist book=new booklist();
        System.out.println("请输入=》1.管理员 2.游客");
        int a= scan.nextInt();
        user users=new user();
        if (a==1){
            users=new manage();
        }else {
            users=new normal();
        }
        while (true){
            users.menu();
            Scanner choice=new Scanner(System.in);
            int b=choice.nextInt();
            users.gathers[b].work(book);
        }
    }
}
